import { openBuildService } from '../../helper/service'

// 值类型为String或Object,String为url(method),Object同axios(config)参数支持相同,data和params只能为对象类型
const settings = {
    //树列表
    getClassTreeList: {
        url: '/api/v1/data/b_object/b_object_class_tree',
        method: 'get'
    },
    //树-新增
    addClassTree: {
        url: '/api/v1/data/b_object/object_class_create',
        method: 'post'
    },
    //树-编辑
    modifyClassTree: {
        url: '/api/v1/data/b_object/object_class_edit',
        method: 'put'
    },
    //树-删除
    delClassTree: {
        url: '/api/v1/data/b_object/object_class_delete',
        method: 'delete'
    },
    //获取业务对象列表数据
    getBusinessObjList: {
        url: '/api/v1/data/b_object/b_object_list',
        method: 'get'
    },
    //新增SQL对象
    addSqlObj: {
        url: '/api/v1/data/b_object/b_object_create',
        method: 'post'
    },
    //修改SQL对象
    modifySqlObj: {
        url: '/api/v1/data/b_object/b_object_edit',
        method: 'put'
    },
    //删除SQL对象
    delSqlObj: {
        url: '/api/v1/data/b_object/b_object_delete',
        method: 'delete'
    },
    //sql语句测试
    sqlTest: {
        url: '/api/v1/data/b_object/b_object_test',
        method: 'put'
    },
    //新增业务对象
    addBusinessObj: {
        url: '/api/v1/data/b_object/b_busi_object_create',
        method: 'post'
    },
    //编辑业务对象
    editBusinessObj: {
        url: '/api/v1/data/b_object/b_busi_object_edit',
        method: 'put'
    },
    //获取业务对象详情
    getBusinessObjDetail: {
        url: '/api/v1/data/b_object/get_obj_detail',
        method: 'get'
    },
    //业务对象定义-编辑弹框-删除实体关系维护 
    delEntityRel: {
        url: '/api/v1/data/b_object/b_object_rel_del',
        method: 'delete'
    }

}

export default openBuildService(settings)